package com.boboPlanet.user.service;

import com.boboPlanet.user.entity.dto.ArticleDTO;
import com.boboPlanet.user.entity.dto.ArticleMainDTO;
import com.boboPlanet.user.entity.po.ArticleDetailPO;
import com.boboPlanet.user.entity.po.CommentInfoPO;
import com.boboPlanet.user.entity.vo.ArticleMainVO;

import java.util.List;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2023/2/22
 **/
public interface ArticleService {

    /**
     * 获取未登录信息
     * @param dto ArticleMainDTO
     * @return List
     */
    List<ArticleMainVO> getLogoutArticleMainInfo(ArticleMainDTO dto,boolean flag);

    Boolean insertArticleInfo(ArticleDTO dto);

    ArticleDetailPO getArtDetailById(Long artId);

    Boolean publishComment(Long artId,String content);

    List<CommentInfoPO> getCommentList(Long artId);

    Boolean collectArt(Long artId);

    Boolean cancelCollectArt(Long artId);

    Boolean judgeCurrentArtIsCollect(Long artId);
}
